package com.estore.DEMO01;

import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;

public class YU {
    public static  void  main(String[] args) throws Exception{
        File file = new File("C:" + File.separator + "muyu" + File.separator +"vip"
        + File.separator+"demo.txt");
        if ( ! file.getParentFile().exists()){
            file.getParentFile().mkdirs();
        }
        OutputStream output = new FileOutputStream(file);
        String message = "www.DEMO01.com";
        byte data [] =message.getBytes();
        output.write(data);
        output.close();
    }
}
